<template>
	<web-view :src="webUrl"></web-view>
</template>

<script setup>
import { onLoad, onShow } from '@dcloudio/uni-app';
import { ref } from 'vue';

//页面公共变量
const title = ref('');
const webUrl = ref('');

// 页面生命周期
onLoad((options) => {
	title.value = options.title;
	webUrl.value = options.url;
});
onShow(() => {
	uni.setNavigationBarTitle({
		title: title.value
	});
});

// 页面函数
</script>

<style lang="scss" scoped></style>
